package
{
	import com.quentinbeauperin.twitbird.Preloader;
	import com.quentinbeauperin.twitbird.ScreenEngine;
	
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.net.URLRequest;
	
	import flashx.textLayout.formats.WhiteSpaceCollapse;
	
	import mx.core.mx_internal;
	
	// Dimensions of the stage
	[SWF(width="800", height="450")]
	public class twitbird extends Sprite
	{
		
		public var preloader:Preloader;
		private var screenEngine:ScreenEngine;
		
		public function twitbird()
		{
			addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(event:Event):void {
			// Scaling
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			screenEngine = new ScreenEngine;
			addChild(screenEngine);
		}
	}
}
